package com.example.provider.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description
 * @Date 2022-01-05 10:46
 * @Author wdg
 */
@RestController
@RequestMapping("/api")
public class RemoteContreoller {

    @GetMapping("/getListApi")
    public List<String> getListApi() {
        List<String> list = new ArrayList<>();

        for (int i = 0; i < 10; i++) {
            list.add("测试" + i);
        }
        return list;
    }
}
